<template>
  <view>
    <view class="Booking">
      <!-- @click="gotoDetail(item)" -->
      <view v-for="(item,i) in bookingList" :key="i" @click="gotoDetail(item)">
    	<my-bookings :item="item"></my-bookings>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        // query:{},
        
        bookingList: [
              {name: '半天陪诊', price: "150.00元/次", detail: "陪诊就医，预约挂号,省时省力省心", img: '../../static/bookingImg/陪伴.png'},
              {name: '全天陪诊', price: "300.00元/次", detail: "陪诊就医，预约挂号,省时省力省心,车接车送", img: '../../static/bookingImg/陪伴.png'},
              {name: '半天陪诊(儿童)', price: "200.00元/次", detail: "陪诊就医，预约挂号,省时省力省心,车接车送，提供一日险", img: '../../static/bookingImg/陪伴.png'},
              {name: '全天陪诊(儿童)', price: "400.00元/次", detail: "陪诊就医，预约挂号,省时省力省心,车接车送，提供一日险", img: '../../static/bookingImg/陪伴.png'},
              {name: '半天陪诊(老年人)', price: "210.00元/次", detail: "陪诊就医，预约挂号,省时省力省心,车接车送，提供一日险", img: '../../static/bookingImg/陪伴.png'},
              {name: '全天陪诊(老年人)', price: "420.00元/次", detail: "陪诊就医，预约挂号,省时省力省心,车接车送，提供一日险", img: '../../static/bookingImg/陪伴.png'},
              ]
      }
    },
    
    // onLoad(options){
    //  this.setDate({
    //     query: options
    //   })
    // },
    
    // onReady: function() {
      
    //   wx.setNavigationBarTitle({
    //     title: this.data.query.title,
    //   })
    // },
    
    methods: {
      gotoDetail(item) {
        // if(item.title === '半天陪诊'){
        uni.navigateTo({
          un1: '/subpkg/booking_detail/booking_detail'
        })
      // }
      }
    }
  }
</script>

<style lang="scss">

</style>
